import Vue from 'vue'
import App from './App.vue'
import iView from 'iview';

import VueRouter from 'vue-router';
import {routes} from './routes';
import axios from 'axios';
import VueAxios from 'vue-axios';
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

import VueQuillEditor from 'vue-quill-editor'

Vue.use(VueQuillEditor, /* { default global options } */)
Vue.use(iView);
Vue.use(VueAxios,axios);
Vue.use(VueRouter);

const router = new VueRouter({
	routes:routes, 
	mode:'hash'
});

Vue.mixin({
  data: function(){
    return {
      get globalUrlPrefix(){
        return "http://localhost:3000/"
      }
    }
  }
})

new Vue({
  el: '#app',
  router,
  render: h => h(App)
})

